# -*- coding: utf-8 -*- 
#
# Description:
#
#  Definiton
#
#
#
# Changes:
#
# 2012-01-10
# Initial Commit
#
#
# Copyright 2010-2012, WyDev Team.
# Author: Polo35 (polo35580@hotmail.fr)
#
# Licenced under Academic Free License version 3.0
# Review WyGui README & LICENSE files for further details.

nname: 68
n 68(None)[]:
	i: 31(), 51()
	o: 

nname: 51
n 51(None)[WyLed().ask_led_action(25)
]:
	i: 0(f)
	o: 68()

nname: 31
n 31(None)[WyLed().ask_led_action(1)
]:
	i: 0(t)
	o: 68()

nname: 0
n 0(wr.scheduler.IsSomeRecordingRunning())[from pygui.facilities.wylight import WyLed
]:
	i: 
	o: 31(t), 51(f)

nname: 0
n 0(None)[from pygui.facilities.wylight import WyLed
if wr.scheduler.IsSomeRecordingRunning():
	WyLed().ask_led_action(1)
else:
	WyLed().ask_led_action(25)
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb75e038c>}
nname: 1020
n 1020(None)[log.info('Players loaded!')
]:
	i: 227(), 938(), 981(), 1018(AE)
	o: 

nname: 1018
n 1018(None)[]:
	i: 971(f)
	o: 1020(AE)

nname: 981
n 981(None)[#, e
WebBrowser = None
log.error('Web Browser loading error: %s', str(e))
]:
	i: 971(t)
	o: 1020()

nname: 971
n 971(<dummy_ex3> EXC_MATCH Exception)[]:
	i: 935(except)
	o: 981(t), 1018(f)

nname: 938
n 938(None)[from pygui.menu.players.web_browser import WebBrowser
log.debug('Web Browser loaded')
]:
	i: 935(try)
	o: 1020()

nname: 935
n 935(None)[]:
	i: 853(), 896(), 933(AE)
	o: 938(try), 971(except)

nname: 933
n 933(None)[]:
	i: 886(f)
	o: 935(AE)

nname: 896
n 896(None)[#, e
ChannelScanner = None
log.error('Channel Scanner loading error: %s', str(e))
]:
	i: 886(t)
	o: 935()

nname: 886
n 886(<dummy_ex3> EXC_MATCH Exception)[]:
	i: 834(except)
	o: 896(t), 933(f)

nname: 853
n 853(None)[from pygui.menu.players.channelscanner import ChannelScanner
log.debug('Channel Scanner loaded')
]:
	i: 834(try)
	o: 935()

nname: 834
n 834(None)[from pygui.menu.players.image_viewer import ImageViewer
]:
	i: 745(), 788(), 832(AE)
	o: 853(try), 886(except)

nname: 832
n 832(None)[]:
	i: 778(f)
	o: 834(AE)

nname: 788
n 788(None)[#, e
DVDPlayer = None
PRINT_EXCEPTION()
log.error('DVD Player loading error: %s', str(e))
]:
	i: 778(t)
	o: 834()

nname: 778
n 778(<dummy_ex3> EXC_MATCH Exception)[]:
	i: 742(except)
	o: 788(t), 832(f)

nname: 745
n 745(None)[from pygui.menu.players.dvd_player import DVDPlayer
log.debug('DVD Player loaded')
]:
	i: 742(try)
	o: 834()

nname: 742
n 742(None)[]:
	i: 515(), 686(), 740(AE)
	o: 745(try), 778(except)

nname: 740
n 740(None)[]:
	i: 676(f)
	o: 742(AE)

nname: 686
n 686(None)[#, e
TVPlayer = None
pygui_globs['record_manager'] = None
PRINT_EXCEPTION()
log.error('TV Player loading error: %s', str(e))
]:
	i: 676(t)
	o: 742()

nname: 676
n 676(<dummy_ex3> EXC_MATCH Exception)[]:
	i: 512(except)
	o: 686(t), 740(f)

nname: 515
n 515(None)[from wyrecord import WyRecord
wr = WyRecord()
wr.setMaximumTimeshiftDuration(user_config['tv']['timeshift_length'] * 60)
wr.setRecordPadding(user_config['tv']['epg_margin'] * 60)
def _on_record_event(*args, **args):
	from pygui.facilities.wylight import WyLed
	if wr.scheduler.IsSomeRecordingRunning():
		WyLed().ask_led_action(1)
	else:
		WyLed().ask_led_action(25)

wr.callbacks.recording_event.register(_on_record_event)
from pygui.item.parameters.tv import wyscanserver
wyscan = wyscanserver()
from pygui.menu.players.tv_player import TVPlayer
log.debug('TV Player loaded')
]:
	i: 512(try)
	o: 742()

nname: 512
n 512(None)[]:
	i: 430(), 473(), 510(AE)
	o: 515(try), 676(except)

nname: 510
n 510(None)[]:
	i: 463(f)
	o: 512(AE)

nname: 473
n 473(None)[#, e
VideoPlayer = None
log.error('Video Player loading error: %s', str(e))
]:
	i: 463(t)
	o: 512()

nname: 463
n 463(<dummy_ex3> EXC_MATCH Exception)[]:
	i: 427(except)
	o: 473(t), 510(f)

nname: 430
n 430(None)[from pygui.menu.players.video_player import VideoPlayer
log.debug('Video Player loaded')
]:
	i: 427(try)
	o: 512()

nname: 427
n 427(None)[]:
	i: 345(), 388(), 425(AE)
	o: 430(try), 463(except)

nname: 425
n 425(None)[]:
	i: 378(f)
	o: 427(AE)

nname: 388
n 388(None)[#, e
AudioPlayer = None
log.error('Audio Player loading error: %s', str(e))
]:
	i: 378(t)
	o: 427()

nname: 378
n 378(<dummy_ex3> EXC_MATCH Exception)[]:
	i: 332(except)
	o: 388(t), 425(f)

nname: 345
n 345(None)[from pygui.menu.players.audio_player import AudioPlayer
log.debug('Audio Player loaded')
]:
	i: 332(try)
	o: 427()

nname: 332
n 332(None)[pygui_globs['subserver'] = subserver
]:
	i: 277(), 306(), 331(AE)
	o: 345(try), 378(except)

nname: 306
n 306(None)[subserver = None
log.warning("unable to instancy Subserver. Subtitles Won't be displayed !")
]:
	i: 273(except)
	o: 332()

nname: 277
n 277(None)[from pygui.facilities.subtitles import SubServer
subserver = SubServer()
]:
	i: 273(try)
	o: 332()

nname: 273
n 273(None)[]:
	i: 0(f)
	o: 277(try), 306(except)

nname: 227
n 227(None)[AudioPlayer = None
VideoPlayer = None
TVPlayer = None
DVDPlayer = None
ChannelScanner = None
ImageViewer = None
WebBrowser = None
]:
	i: 0(t)
	o: 1020()

nname: 0
n 0(config.no_PLAYERS)[from __future__ import absolute_import
from peewee.debug import GET_LOGGER, PRINT_EXCEPTION
from pygui.config import user_config, plugins
from pygui.shared import pygui_globs
log = GET_LOGGER(__name__)
forward_tricks_icons = {0: 'ff1', 1: 'ff2', 2: 'ff3', 3: 'ff4', 4: 'ff5'}
backward_tricks_icons = {0: 'bw1', 1: 'bw2', 2: 'bw3', 3: 'bw4', 4: 'bw5'}
log.info('Loading players...')
import pygui.config as config
]:
	i: 
	o: 227(t), 273(f)

nname: 1020
n 1020(None)[log.info('Players loaded!')
]:
	i: 227(), 971()
	o: 

nname: 971
n 971(None)[except Exception, e:
	WebBrowser = None
	log.error('Web Browser loading error: %s', str(e))
]:
	i: 935()
	o: 1020()

nname: 935
n 935(None)[try:
	from pygui.menu.players.web_browser import WebBrowser
	log.debug('Web Browser loaded')
]:
	i: 853()
	o: 971()

nname: 853
n 853(None)[try:
	from pygui.menu.players.channelscanner import ChannelScanner
	log.debug('Channel Scanner loaded')
except Exception, e:
	ChannelScanner = None
	log.error('Channel Scanner loading error: %s', str(e))
]:
	i: 778(try)
	o: 935()

nname: 778
n 778(None)[except Exception, e:
	DVDPlayer = None
	PRINT_EXCEPTION()
	log.error('DVD Player loading error: %s', str(e))
from pygui.menu.players.image_viewer import ImageViewer
]:
	i: 742()
	o: 853(try)

nname: 742
n 742(None)[try:
	from pygui.menu.players.dvd_player import DVDPlayer
	log.debug('DVD Player loaded')
]:
	i: 515()
	o: 778()

nname: 515
n 515(None)[try:
	from wyrecord import WyRecord
	wr = WyRecord()
	wr.setMaximumTimeshiftDuration(user_config['tv']['timeshift_length'] * 60)
	wr.setRecordPadding(user_config['tv']['epg_margin'] * 60)
	def _on_record_event(*args, **args):
		from pygui.facilities.wylight import WyLed
		if wr.scheduler.IsSomeRecordingRunning():
			WyLed().ask_led_action(1)
		else:
			WyLed().ask_led_action(25)

	wr.callbacks.recording_event.register(_on_record_event)
	from pygui.item.parameters.tv import wyscanserver
	wyscan = wyscanserver()
	from pygui.menu.players.tv_player import TVPlayer
	log.debug('TV Player loaded')
except Exception, e:
	TVPlayer = None
	pygui_globs['record_manager'] = None
	PRINT_EXCEPTION()
	log.error('TV Player loading error: %s', str(e))
]:
	i: 463(try)
	o: 742()

nname: 463
n 463(None)[except Exception, e:
	VideoPlayer = None
	log.error('Video Player loading error: %s', str(e))
]:
	i: 427()
	o: 515(try)

nname: 427
n 427(None)[try:
	from pygui.menu.players.video_player import VideoPlayer
	log.debug('Video Player loaded')
]:
	i: 345()
	o: 463()

nname: 345
n 345(None)[try:
	from pygui.menu.players.audio_player import AudioPlayer
	log.debug('Audio Player loaded')
except Exception, e:
	AudioPlayer = None
	log.error('Audio Player loading error: %s', str(e))
]:
	i: 306(try)
	o: 427()

nname: 306
n 306(None)[except:
	subserver = None
	log.warning("unable to instancy Subserver. Subtitles Won't be displayed !")
pygui_globs['subserver'] = subserver
]:
	i: 273()
	o: 345(try)

nname: 273
n 273(None)[try:
	from pygui.facilities.subtitles import SubServer
	subserver = SubServer()
]:
	i: 0(f)
	o: 306()

nname: 227
n 227(None)[AudioPlayer = None
VideoPlayer = None
TVPlayer = None
DVDPlayer = None
ChannelScanner = None
ImageViewer = None
WebBrowser = None
]:
	i: 0(t)
	o: 1020()

nname: 0
n 0(config.no_PLAYERS)[from __future__ import absolute_import
from peewee.debug import GET_LOGGER, PRINT_EXCEPTION
from pygui.config import user_config, plugins
from pygui.shared import pygui_globs
log = GET_LOGGER(__name__)
forward_tricks_icons = {0: 'ff1', 1: 'ff2', 2: 'ff3', 3: 'ff4', 4: 'ff5'}
backward_tricks_icons = {0: 'bw1', 1: 'bw2', 2: 'bw3', 3: 'bw4', 4: 'bw5'}
log.info('Loading players...')
import pygui.config as config
]:
	i: 
	o: 227(t), 273(f)

nname: 1020
n 1020(None)[log.info('Players loaded!')
]:
	i: 227(), 971()
	o: 

nname: 971
n 971(None)[except Exception, e:
	WebBrowser = None
	log.error('Web Browser loading error: %s', str(e))
]:
	i: 853()
	o: 1020()

nname: 853
n 853(None)[try:
	from pygui.menu.players.channelscanner import ChannelScanner
	log.debug('Channel Scanner loaded')
except Exception, e:
	ChannelScanner = None
	log.error('Channel Scanner loading error: %s', str(e))
try:
	from pygui.menu.players.web_browser import WebBrowser
	log.debug('Web Browser loaded')
]:
	i: 742(try)
	o: 971()

nname: 742
n 742(None)[try:
	from pygui.menu.players.dvd_player import DVDPlayer
	log.debug('DVD Player loaded')
except Exception, e:
	DVDPlayer = None
	PRINT_EXCEPTION()
	log.error('DVD Player loading error: %s', str(e))
from pygui.menu.players.image_viewer import ImageViewer
]:
	i: 463()
	o: 853(try)

nname: 463
n 463(None)[except Exception, e:
	VideoPlayer = None
	log.error('Video Player loading error: %s', str(e))
try:
	from wyrecord import WyRecord
	wr = WyRecord()
	wr.setMaximumTimeshiftDuration(user_config['tv']['timeshift_length'] * 60)
	wr.setRecordPadding(user_config['tv']['epg_margin'] * 60)
	def _on_record_event(*args, **args):
		from pygui.facilities.wylight import WyLed
		if wr.scheduler.IsSomeRecordingRunning():
			WyLed().ask_led_action(1)
		else:
			WyLed().ask_led_action(25)

	wr.callbacks.recording_event.register(_on_record_event)
	from pygui.item.parameters.tv import wyscanserver
	wyscan = wyscanserver()
	from pygui.menu.players.tv_player import TVPlayer
	log.debug('TV Player loaded')
except Exception, e:
	TVPlayer = None
	pygui_globs['record_manager'] = None
	PRINT_EXCEPTION()
	log.error('TV Player loading error: %s', str(e))
]:
	i: 345()
	o: 742()

nname: 345
n 345(None)[try:
	from pygui.menu.players.audio_player import AudioPlayer
	log.debug('Audio Player loaded')
except Exception, e:
	AudioPlayer = None
	log.error('Audio Player loading error: %s', str(e))
try:
	from pygui.menu.players.video_player import VideoPlayer
	log.debug('Video Player loaded')
]:
	i: 273(try)
	o: 463()

nname: 273
n 273(None)[try:
	from pygui.facilities.subtitles import SubServer
	subserver = SubServer()
except:
	subserver = None
	log.warning("unable to instancy Subserver. Subtitles Won't be displayed !")
pygui_globs['subserver'] = subserver
]:
	i: 0(f)
	o: 345(try)

nname: 227
n 227(None)[AudioPlayer = None
VideoPlayer = None
TVPlayer = None
DVDPlayer = None
ChannelScanner = None
ImageViewer = None
WebBrowser = None
]:
	i: 0(t)
	o: 1020()

nname: 0
n 0(config.no_PLAYERS)[from __future__ import absolute_import
from peewee.debug import GET_LOGGER, PRINT_EXCEPTION
from pygui.config import user_config, plugins
from pygui.shared import pygui_globs
log = GET_LOGGER(__name__)
forward_tricks_icons = {0: 'ff1', 1: 'ff2', 2: 'ff3', 3: 'ff4', 4: 'ff5'}
backward_tricks_icons = {0: 'bw1', 1: 'bw2', 2: 'bw3', 3: 'bw4', 4: 'bw5'}
log.info('Loading players...')
import pygui.config as config
]:
	i: 
	o: 227(t), 273(f)

nname: 1020
n 1020(None)[log.info('Players loaded!')
]:
	i: 227(), 853()
	o: 

nname: 853
n 853(None)[try:
	from pygui.menu.players.channelscanner import ChannelScanner
	log.debug('Channel Scanner loaded')
except Exception, e:
	ChannelScanner = None
	log.error('Channel Scanner loading error: %s', str(e))
try:
	from pygui.menu.players.web_browser import WebBrowser
	log.debug('Web Browser loaded')
except Exception, e:
	WebBrowser = None
	log.error('Web Browser loading error: %s', str(e))
]:
	i: 463(try)
	o: 1020()

nname: 463
n 463(None)[except Exception, e:
	VideoPlayer = None
	log.error('Video Player loading error: %s', str(e))
try:
	from wyrecord import WyRecord
	wr = WyRecord()
	wr.setMaximumTimeshiftDuration(user_config['tv']['timeshift_length'] * 60)
	wr.setRecordPadding(user_config['tv']['epg_margin'] * 60)
	def _on_record_event(*args, **args):
		from pygui.facilities.wylight import WyLed
		if wr.scheduler.IsSomeRecordingRunning():
			WyLed().ask_led_action(1)
		else:
			WyLed().ask_led_action(25)

	wr.callbacks.recording_event.register(_on_record_event)
	from pygui.item.parameters.tv import wyscanserver
	wyscan = wyscanserver()
	from pygui.menu.players.tv_player import TVPlayer
	log.debug('TV Player loaded')
except Exception, e:
	TVPlayer = None
	pygui_globs['record_manager'] = None
	PRINT_EXCEPTION()
	log.error('TV Player loading error: %s', str(e))
try:
	from pygui.menu.players.dvd_player import DVDPlayer
	log.debug('DVD Player loaded')
except Exception, e:
	DVDPlayer = None
	PRINT_EXCEPTION()
	log.error('DVD Player loading error: %s', str(e))
from pygui.menu.players.image_viewer import ImageViewer
]:
	i: 273()
	o: 853(try)

nname: 273
n 273(None)[try:
	from pygui.facilities.subtitles import SubServer
	subserver = SubServer()
except:
	subserver = None
	log.warning("unable to instancy Subserver. Subtitles Won't be displayed !")
pygui_globs['subserver'] = subserver
try:
	from pygui.menu.players.audio_player import AudioPlayer
	log.debug('Audio Player loaded')
except Exception, e:
	AudioPlayer = None
	log.error('Audio Player loading error: %s', str(e))
try:
	from pygui.menu.players.video_player import VideoPlayer
	log.debug('Video Player loaded')
]:
	i: 0(f)
	o: 463()

nname: 227
n 227(None)[AudioPlayer = None
VideoPlayer = None
TVPlayer = None
DVDPlayer = None
ChannelScanner = None
ImageViewer = None
WebBrowser = None
]:
	i: 0(t)
	o: 1020()

nname: 0
n 0(config.no_PLAYERS)[from __future__ import absolute_import
from peewee.debug import GET_LOGGER, PRINT_EXCEPTION
from pygui.config import user_config, plugins
from pygui.shared import pygui_globs
log = GET_LOGGER(__name__)
forward_tricks_icons = {0: 'ff1', 1: 'ff2', 2: 'ff3', 3: 'ff4', 4: 'ff5'}
backward_tricks_icons = {0: 'bw1', 1: 'bw2', 2: 'bw3', 3: 'bw4', 4: 'bw5'}
log.info('Loading players...')
import pygui.config as config
]:
	i: 
	o: 227(t), 273(f)

nname: 1020
n 1020(None)[log.info('Players loaded!')
]:
	i: 227(), 853()
	o: 

nname: 853
n 853(None)[try:
	from pygui.menu.players.channelscanner import ChannelScanner
	log.debug('Channel Scanner loaded')
except Exception, e:
	ChannelScanner = None
	log.error('Channel Scanner loading error: %s', str(e))
try:
	from pygui.menu.players.web_browser import WebBrowser
	log.debug('Web Browser loaded')
except Exception, e:
	WebBrowser = None
	log.error('Web Browser loading error: %s', str(e))
]:
	i: 273(try)
	o: 1020()

nname: 273
n 273(None)[try:
	from pygui.facilities.subtitles import SubServer
	subserver = SubServer()
except:
	subserver = None
	log.warning("unable to instancy Subserver. Subtitles Won't be displayed !")
pygui_globs['subserver'] = subserver
try:
	from pygui.menu.players.audio_player import AudioPlayer
	log.debug('Audio Player loaded')
except Exception, e:
	AudioPlayer = None
	log.error('Audio Player loading error: %s', str(e))
try:
	from pygui.menu.players.video_player import VideoPlayer
	log.debug('Video Player loaded')
except Exception, e:
	VideoPlayer = None
	log.error('Video Player loading error: %s', str(e))
try:
	from wyrecord import WyRecord
	wr = WyRecord()
	wr.setMaximumTimeshiftDuration(user_config['tv']['timeshift_length'] * 60)
	wr.setRecordPadding(user_config['tv']['epg_margin'] * 60)
	def _on_record_event(*args, **args):
		from pygui.facilities.wylight import WyLed
		if wr.scheduler.IsSomeRecordingRunning():
			WyLed().ask_led_action(1)
		else:
			WyLed().ask_led_action(25)

	wr.callbacks.recording_event.register(_on_record_event)
	from pygui.item.parameters.tv import wyscanserver
	wyscan = wyscanserver()
	from pygui.menu.players.tv_player import TVPlayer
	log.debug('TV Player loaded')
except Exception, e:
	TVPlayer = None
	pygui_globs['record_manager'] = None
	PRINT_EXCEPTION()
	log.error('TV Player loading error: %s', str(e))
try:
	from pygui.menu.players.dvd_player import DVDPlayer
	log.debug('DVD Player loaded')
except Exception, e:
	DVDPlayer = None
	PRINT_EXCEPTION()
	log.error('DVD Player loading error: %s', str(e))
from pygui.menu.players.image_viewer import ImageViewer
]:
	i: 0(f)
	o: 853(try)

nname: 227
n 227(None)[AudioPlayer = None
VideoPlayer = None
TVPlayer = None
DVDPlayer = None
ChannelScanner = None
ImageViewer = None
WebBrowser = None
]:
	i: 0(t)
	o: 1020()

nname: 0
n 0(config.no_PLAYERS)[from __future__ import absolute_import
from peewee.debug import GET_LOGGER, PRINT_EXCEPTION
from pygui.config import user_config, plugins
from pygui.shared import pygui_globs
log = GET_LOGGER(__name__)
forward_tricks_icons = {0: 'ff1', 1: 'ff2', 2: 'ff3', 3: 'ff4', 4: 'ff5'}
backward_tricks_icons = {0: 'bw1', 1: 'bw2', 2: 'bw3', 3: 'bw4', 4: 'bw5'}
log.info('Loading players...')
import pygui.config as config
]:
	i: 
	o: 227(t), 273(f)

nname: 1020
n 1020(None)[log.info('Players loaded!')
]:
	i: 227(), 273()
	o: 

nname: 273
n 273(None)[try:
	from pygui.facilities.subtitles import SubServer
	subserver = SubServer()
except:
	subserver = None
	log.warning("unable to instancy Subserver. Subtitles Won't be displayed !")
pygui_globs['subserver'] = subserver
try:
	from pygui.menu.players.audio_player import AudioPlayer
	log.debug('Audio Player loaded')
except Exception, e:
	AudioPlayer = None
	log.error('Audio Player loading error: %s', str(e))
try:
	from pygui.menu.players.video_player import VideoPlayer
	log.debug('Video Player loaded')
except Exception, e:
	VideoPlayer = None
	log.error('Video Player loading error: %s', str(e))
try:
	from wyrecord import WyRecord
	wr = WyRecord()
	wr.setMaximumTimeshiftDuration(user_config['tv']['timeshift_length'] * 60)
	wr.setRecordPadding(user_config['tv']['epg_margin'] * 60)
	def _on_record_event(*args, **args):
		from pygui.facilities.wylight import WyLed
		if wr.scheduler.IsSomeRecordingRunning():
			WyLed().ask_led_action(1)
		else:
			WyLed().ask_led_action(25)

	wr.callbacks.recording_event.register(_on_record_event)
	from pygui.item.parameters.tv import wyscanserver
	wyscan = wyscanserver()
	from pygui.menu.players.tv_player import TVPlayer
	log.debug('TV Player loaded')
except Exception, e:
	TVPlayer = None
	pygui_globs['record_manager'] = None
	PRINT_EXCEPTION()
	log.error('TV Player loading error: %s', str(e))
try:
	from pygui.menu.players.dvd_player import DVDPlayer
	log.debug('DVD Player loaded')
except Exception, e:
	DVDPlayer = None
	PRINT_EXCEPTION()
	log.error('DVD Player loading error: %s', str(e))
from pygui.menu.players.image_viewer import ImageViewer
try:
	from pygui.menu.players.channelscanner import ChannelScanner
	log.debug('Channel Scanner loaded')
except Exception, e:
	ChannelScanner = None
	log.error('Channel Scanner loading error: %s', str(e))
try:
	from pygui.menu.players.web_browser import WebBrowser
	log.debug('Web Browser loaded')
except Exception, e:
	WebBrowser = None
	log.error('Web Browser loading error: %s', str(e))
]:
	i: 0(f)
	o: 1020()

nname: 227
n 227(None)[AudioPlayer = None
VideoPlayer = None
TVPlayer = None
DVDPlayer = None
ChannelScanner = None
ImageViewer = None
WebBrowser = None
]:
	i: 0(t)
	o: 1020()

nname: 0
n 0(config.no_PLAYERS)[from __future__ import absolute_import
from peewee.debug import GET_LOGGER, PRINT_EXCEPTION
from pygui.config import user_config, plugins
from pygui.shared import pygui_globs
log = GET_LOGGER(__name__)
forward_tricks_icons = {0: 'ff1', 1: 'ff2', 2: 'ff3', 3: 'ff4', 4: 'ff5'}
backward_tricks_icons = {0: 'bw1', 1: 'bw2', 2: 'bw3', 3: 'bw4', 4: 'bw5'}
log.info('Loading players...')
import pygui.config as config
]:
	i: 
	o: 227(t), 273(f)

nname: 0
n 0(None)[from __future__ import absolute_import
from peewee.debug import GET_LOGGER, PRINT_EXCEPTION
from pygui.config import user_config, plugins
from pygui.shared import pygui_globs
log = GET_LOGGER(__name__)
forward_tricks_icons = {0: 'ff1', 1: 'ff2', 2: 'ff3', 3: 'ff4', 4: 'ff5'}
backward_tricks_icons = {0: 'bw1', 1: 'bw2', 2: 'bw3', 3: 'bw4', 4: 'bw5'}
log.info('Loading players...')
import pygui.config as config
if config.no_PLAYERS:
	AudioPlayer = None
	VideoPlayer = None
	TVPlayer = None
	DVDPlayer = None
	ChannelScanner = None
	ImageViewer = None
	WebBrowser = None
else:
	try:
		from pygui.facilities.subtitles import SubServer
		subserver = SubServer()
	except:
		subserver = None
		log.warning("unable to instancy Subserver. Subtitles Won't be displayed !")
	pygui_globs['subserver'] = subserver
	try:
		from pygui.menu.players.audio_player import AudioPlayer
		log.debug('Audio Player loaded')
	except Exception, e:
		AudioPlayer = None
		log.error('Audio Player loading error: %s', str(e))
	try:
		from pygui.menu.players.video_player import VideoPlayer
		log.debug('Video Player loaded')
	except Exception, e:
		VideoPlayer = None
		log.error('Video Player loading error: %s', str(e))
	try:
		from wyrecord import WyRecord
		wr = WyRecord()
		wr.setMaximumTimeshiftDuration(user_config['tv']['timeshift_length'] * 60)
		wr.setRecordPadding(user_config['tv']['epg_margin'] * 60)
		def _on_record_event(*args, **args):
			from pygui.facilities.wylight import WyLed
			if wr.scheduler.IsSomeRecordingRunning():
				WyLed().ask_led_action(1)
			else:
				WyLed().ask_led_action(25)

		wr.callbacks.recording_event.register(_on_record_event)
		from pygui.item.parameters.tv import wyscanserver
		wyscan = wyscanserver()
		from pygui.menu.players.tv_player import TVPlayer
		log.debug('TV Player loaded')
	except Exception, e:
		TVPlayer = None
		pygui_globs['record_manager'] = None
		PRINT_EXCEPTION()
		log.error('TV Player loading error: %s', str(e))
	try:
		from pygui.menu.players.dvd_player import DVDPlayer
		log.debug('DVD Player loaded')
	except Exception, e:
		DVDPlayer = None
		PRINT_EXCEPTION()
		log.error('DVD Player loading error: %s', str(e))
	from pygui.menu.players.image_viewer import ImageViewer
	try:
		from pygui.menu.players.channelscanner import ChannelScanner
		log.debug('Channel Scanner loaded')
	except Exception, e:
		ChannelScanner = None
		log.error('Channel Scanner loading error: %s', str(e))
	try:
		from pygui.menu.players.web_browser import WebBrowser
		log.debug('Web Browser loaded')
	except Exception, e:
		WebBrowser = None
		log.error('Web Browser loading error: %s', str(e))
log.info('Players loaded!')
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb75cfd4c>}
from __future__ import absolute_import
from peewee.debug import GET_LOGGER, PRINT_EXCEPTION
from pygui.config import user_config, plugins
from pygui.shared import pygui_globs
log = GET_LOGGER(__name__)
forward_tricks_icons = {0: 'ff1', 1: 'ff2', 2: 'ff3', 3: 'ff4', 4: 'ff5'}
backward_tricks_icons = {0: 'bw1', 1: 'bw2', 2: 'bw3', 3: 'bw4', 4: 'bw5'}
log.info('Loading players...')
import pygui.config as config
if config.no_PLAYERS:
	AudioPlayer = None
	VideoPlayer = None
	TVPlayer = None
	DVDPlayer = None
	ChannelScanner = None
	ImageViewer = None
	WebBrowser = None
else:
	try:
		from pygui.facilities.subtitles import SubServer
		subserver = SubServer()
	except:
		subserver = None
		log.warning("unable to instancy Subserver. Subtitles Won't be displayed !")
	pygui_globs['subserver'] = subserver
	try:
		from pygui.menu.players.audio_player import AudioPlayer
		log.debug('Audio Player loaded')
	except Exception, e:
		AudioPlayer = None
		log.error('Audio Player loading error: %s', str(e))
	try:
		from pygui.menu.players.video_player import VideoPlayer
		log.debug('Video Player loaded')
	except Exception, e:
		VideoPlayer = None
		log.error('Video Player loading error: %s', str(e))
	try:
		from wyrecord import WyRecord
		wr = WyRecord()
		wr.setMaximumTimeshiftDuration(user_config['tv']['timeshift_length'] * 60)
		wr.setRecordPadding(user_config['tv']['epg_margin'] * 60)
		def _on_record_event(*args, **args):
			from pygui.facilities.wylight import WyLed
			if wr.scheduler.IsSomeRecordingRunning():
				WyLed().ask_led_action(1)
			else:
				WyLed().ask_led_action(25)

		wr.callbacks.recording_event.register(_on_record_event)
		from pygui.item.parameters.tv import wyscanserver
		wyscan = wyscanserver()
		from pygui.menu.players.tv_player import TVPlayer
		log.debug('TV Player loaded')
	except Exception, e:
		TVPlayer = None
		pygui_globs['record_manager'] = None
		PRINT_EXCEPTION()
		log.error('TV Player loading error: %s', str(e))
	try:
		from pygui.menu.players.dvd_player import DVDPlayer
		log.debug('DVD Player loaded')
	except Exception, e:
		DVDPlayer = None
		PRINT_EXCEPTION()
		log.error('DVD Player loading error: %s', str(e))
	from pygui.menu.players.image_viewer import ImageViewer
	try:
		from pygui.menu.players.channelscanner import ChannelScanner
		log.debug('Channel Scanner loaded')
	except Exception, e:
		ChannelScanner = None
		log.error('Channel Scanner loading error: %s', str(e))
	try:
		from pygui.menu.players.web_browser import WebBrowser
		log.debug('Web Browser loaded')
	except Exception, e:
		WebBrowser = None
		log.error('Web Browser loading error: %s', str(e))
log.info('Players loaded!')
